<template>
    <Header>
        <van-col span="24" class="nav_bar">
            <van-nav-bar title="设置" left-text="返回" :fixed="true" left-arrow @click-left="onClickLeft" />
          </van-col>
    </Header>
    <van-cell-group inset style="margin-top: 35px; background-color: #fcfcfc;">  
        <van-cell title="个人资料" is-link to="/settinginfo" /><br>
        <van-cell title="收货地址" is-link to="address"/><br>
        <van-cell title="账户与安全" is-link to="account"/><br>
        <van-cell title="主题设置" is-link to="theme"/><br>
        <van-cell title="隐私设置" is-link to="index" /><br>
    </van-cell-group>
    <van-button round type="success" size="large" style="margin-top: 80px;">退出登录</van-button>
</template>
<script setup>
// import { useRouter } from 'vue-router'; //路由器

import router from '../router';
const onClickLeft = () => history.back();
// const router = useRouter(); //获取到 router 对象，用于编程式跳转导航
</script>
<style scoped>
.nav_bar{
    position:relative;
    top:-32px;
    /* left:-32px;
    right: -32px; */
    margin:2px -32px
}
</style>